# @Timer:2022/3/29
# @作者:meng
# @文件名:mysql_connet.py

'''pymysql 是python与mysql连接的数据接口'''
import pymysql
#创建连接
def get_conn():
    conn = pymysql.connect(host='127.0.0.1',
                           user='root',
                           password='ym',
                           database='test',
                           charset='utf8mb4')

    return conn